<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Create and initialize new event base</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.event-base-new" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">event_base_new</h1>
  <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_base_new</span> &mdash; <span class="dc-title">Create and initialize new event base</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.event-base-new-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>event_base_new</strong></span>
    ( <span class="methodparam">void</span>
   ) : <span class="type">resource</span></div>

  <p class="para rdfs-comment">
   Returns new event base, which can be used later in <span class="function"><a href="event_base_set.html" class="function">event_base_set()</a></span>, 
   <span class="function"><a href="event_base_loop.html" class="function">event_base_loop()</a></span> and other functions. 
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.event-base-new-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
  <p class="para">
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.event-base-new-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   <span class="function"><strong>event_base_new()</strong></span> returns valid event base resource on
   success or <strong><code>FALSE</code></strong> on error.
  </p>
 </div>


</div></div></div></body></html>